<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="" method="post" enctype="multipart/form-data">
    所属角色：<select name="role_id">
    {foreach $lists as $list}
             <option value="{$list.id}" <?php if($list['id']==$data['role_id']){echo 'selected';}?>>{$list.role_name}</option>
    {/foreach}
          </select></br>
    <input type="hidden" name="id" value="{$data.id}"/></br>
    <input type="submit" value="确定">
    <input type="reset" value="重置">
</form>
</body>
</html>